


#ifndef _FILEUTILS_H
#define _FILEUTILS_H

#ifdef __cplusplus
extern "C"
{
#endif
int ftp_put(int sockfd,char *absolut_path);
int ftp_get(int sockfd,char *filename);
int ftp_file_down(int control_sockfd,char *dir,char *relative_path);
int ftp_up_file(char *dir,char *relative_path,int control_sockfd);
void ftp_cdup(int control_sockfd);
void ftp_pwd(int control_sockfd,char * pwdbuf);
int ftp_list(int sockfd,char *listbuf,int data_sockfd);
void ftp_creat_mkd(char *path,int control_sockfd);
int  ftp_changdir(char *dir,int control_sockfd);
void ftp_reset(int sockfd);
void ftp_type(int sockfd);
long long  ftp_get_file_size(int sockfd,char *filename);
void ftp_quit(int sockfd);
int ftp_retr(int control_sockfd,char *filename,char *dir,int data_sockfd);
int ftp_stor(int control_sockfd,char *dir,char *filename,int data_sockfd);
#ifdef __cplusplus
}
#endif

#endif /* _FILEUTILS_H */
